<?php

Route::group(
    [
        'prefix' => env('ADMIN_PATH', '/admin/'),
        'middleware' => ['admin.bootstrap', 'admin.auth'],
        'namespace' => '\App\Admin\Controller',
    ], function () {

    Route::match(['get', 'post'], '', 'IndexController@index');

    Route::match(['get', 'post'], 'grid_test', 'GridTestController@index');


    Route::match(['get', 'post'], 'blog', 'BlogController@index');
    Route::match(['get', 'post'], 'blog/add', 'BlogController@add');
    Route::match(['get', 'post'], 'blog/edit', 'BlogController@edit');
    Route::match(['get', 'post'], 'blog/delete', 'BlogController@delete');
    Route::match(['get', 'post'], 'blog/show', 'BlogController@show');

    Route::match(['get', 'post'], 'exchangerate', 'ExchangerateController@index');
    Route::match(['get', 'post'], 'exchangerate/add', 'ExchangerateController@add');
    Route::match(['get', 'post'], 'exchangerate/edit', 'ExchangerateController@edit');
    Route::match(['get', 'post'], 'exchangerate/delete', 'ExchangerateController@delete');
    Route::match(['get', 'post'], 'exchangerate/show', 'ExchangerateController@show');
    //发放货币
    Route::match(['get', 'post'], 'giveout', 'GiveoutController@index');
    Route::match(['get', 'post'], 'giveout/add', 'GiveoutController@add');
    Route::match(['get', 'post'], 'giveout/edit', 'GiveoutController@edit');
    Route::match(['get', 'post'], 'giveout/delete', 'GiveoutController@delete');
    Route::match(['get', 'post'], 'giveout/show', 'GiveoutController@show');
    Route::match(['get', 'post'], 'giveout/downfile/{id}', 'GiveoutController@downfile');
    //货币列表
    Route::match(['get', 'post'], 'goldcoins', 'GoldcoinsController@index');
    Route::match(['get', 'post'], 'goldcoins/add', 'GoldcoinsController@add');
    Route::match(['get', 'post'], 'goldcoins/edit', 'GoldcoinsController@edit');
    Route::match(['get', 'post'], 'goldcoins/delete', 'GoldcoinsController@delete');
    Route::match(['get', 'post'], 'goldcoins/show', 'GoldcoinsController@show');
    Route::match(['get', 'post'], 'goldcoins/getqrcode/{id}', 'GoldcoinsController@getQrcode');
    //龙币管理
    Route::match(['get', 'post'], 'silverdollarcoin', 'SilverdollarcoinController@index');
    Route::match(['get', 'post'], 'silverdollarcoin/add', 'SilverdollarcoinController@add');
    Route::match(['get', 'post'], 'silverdollarcoin/edit', 'SilverdollarcoinController@edit');
    Route::match(['get', 'post'], 'silverdollarcoin/delete', 'SilverdollarcoinController@delete');
    Route::match(['get', 'post'], 'silverdollarcoin/show', 'SilverdollarcoinController@show');
    Route::match(['get', 'post'], 'silverdollarcoin/getqrcode/{id}', 'SilverdollarcoinController@getQrcode');
});
